package com.theme.passport.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "苹果账号登录表单")
public class AppleLoginForm{


    @ApiModelProperty(value = "identityToken（base64编码的JWT）", notes = "", required = true)
    @NotBlank(message = "identityToken不能为空")
    private String identityToken;

    @ApiModelProperty(value = "用户昵称", notes = "", required = true)
    @NotBlank(message = "用户昵称不能为空")
    private String nickname;

    @ApiModelProperty(value = "用户邮箱", notes = "", required = false)
    private String email;

}
